﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GBPVRLibrary.ControlLibrary
{
    public class ProgressPopupBox : PopupBox
    {
        private ProgressBar ProgressBar;

        public ProgressPopupBox():base(PopupButtonType.Cancel)
        {
            ProgressBar = new ProgressBar(SkinHelper.getPlacementRect("PopupBox-ProgressBar"));
        }

        protected override void Render(System.Collections.ArrayList RenderList, ref bool RequiresMoreRendering)
        {
            base.Render(RenderList, ref RequiresMoreRendering);
            ProgressBar.RenderElement(RenderList, ref RequiresMoreRendering);
        }

        public float ProgressValue
        {
            get { return ProgressBar.Value; }
            set { ProgressBar.Value = value; }
        }
    }
}
